package com.young.netty.gateway.exception;

/**
 * 错误码枚举类
 *
 * @author Young
 * @Date 2021-07-24 19:51
 */
public enum ErrorCodeEnum {

    ERROR001("拦截器重复定义"),

    ;

    private String message;

    ErrorCodeEnum(String message) {
        this.message = message;
    }

    public String getCode() {
        return this.name();
    }

    public String getMessage() {
        return message;
    }
}
